﻿@using EC.Entity.Response.PointsLog
@using EC.Entity.Enum

@model EC.Entity.PagedList<PointsLogQueryResponse>
<div class="data-body data-scroll">
    <div class="data-view m15_t">
        <div class="data-div-view table-responsive">
            <table class="table table-hover table-striped table-bordered">
                <thead>
                    <tr>
                        <th width="40">类型</th>
                        <th width="70">点数</th>
                        <th width="70">剩余点数</th>
                        <th class="t_l">备注</th>
                        <th class="t_l" width="130">创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    @if (Model != null && Model.TData != null && Model.TData.Any())
                    {
                        foreach (var item in (IEnumerable<PointsLogQueryResponse>)Model.TData)
                        {
                    <tr>
                        <td width="40">@((PointsLogType)item.Type)</td>
                        <td width="70" class="t_r">@(item.Points)</td>
                        <td width="70" class="t_r">@(item.LastPoints)</td>
                        <td class="t_l">@(item.Remark)</td>
                        <td class="t_l" width="130">@(item.CreatedDate.ToString("yyyy-MM-dd HH:mm:ss"))</td>
                    </tr>
                        }
                    }
                    else
                    {
                        <tr>
                            <td colspan="4" class="t_c">暂无记录</td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
<!-- 必要的分页参数设置 -->
<input type="hidden" id="TotalCount" value="@(Model != null ? Model.TotalCount : 0)" />